<template>
  <div class="page-tools">
    <el-card>
      <div class="content">
        <div class="left">
          <div v-if="$slots.left" class="tips">
            <i class="el-icon-info"></i>
            <slot name="left"></slot>
          </div>
        </div>
        <div class="right">
          <slot name="right"></slot>
        </div>
      </div>
    </el-card>
  </div>
</template>

<script>
export default {
  name: 'PageTools',
}
</script>

<style lang="scss" scoped>
.page-tools {
  .content {
    display: flex;
    justify-content: space-between;
  }
  .tips {
    padding: 0 15px;
    line-height: 30px;
    border: 1px solid #91d5ff;
    background-color: #e6f7ff;
    border-radius: 5px;
    font-size: 13px;
    color: #666;
  }
  i {
    margin-right: 10px;
    color: #409eff;
  }
}
</style>
